Skip to content

🎨 Make call_by_need deal with functions returning references#281

Merged
lukevalenty merged 1 commit intointel:mainfrom
elbeno:call-by-need-refs
Sep 30, 2025
Merged

🎨 Make call_by_need deal with functions returning references#281
lukevalenty merged 1 commit intointel:mainfrom
elbeno:call-by-need-refs

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Sep 30, 2025

Problem:

  • If call_by_need calls a function returning a reference, it decays the result into the results tuple. It should preserve lvalue references generated in this way.

Solution:

  • Preserve lvalue references in the results tuple.

Problem:
- If `call_by_need` calls a function returning a reference, it decays the result
  into the results tuple. It should preserve lvalue references generated in this
  way.

Solution:
- Preserve lvalue references in the results tuple.
@lukevalenty lukevalenty merged commit 7fcc96f into intel:main Sep 30, 2025
48 checks passed
@elbeno elbeno deleted the call-by-need-refs branch October 16, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants